<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="RemarqueEditDlg" widgetVar="RemarqueEditDialog" modal="true" resizable="false" appendToBody="true" header="#{bundle.EditRemarqueTitle}">

            <h:form id="RemarqueEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{remarqueController.selected != null}">

                        <h:outputLabel value="#{bundle.EditRemarqueLabel_idRemarque}" for="idRemarque" />
                        <h:outputText id="idRemarque" value="#{remarqueController.selected.idRemarque}" />

                        <p:outputLabel value="#{bundle.EditRemarqueLabel_remarque}" for="remarque" />
                        <p:inputTextarea rows="4" cols="30" id="remarque" value="#{remarqueController.selected.remarque}" title="#{bundle.EditRemarqueTitle_remarque}" />
                    </p:panelGrid>
                    <p:commandButton actionListener="#{remarqueController.save}" value="#{bundle.Save}" update="display,:RemarqueListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,RemarqueEditDialog);"/>
                    <p:commandButton value="#{bundle.Cancel}" onclick="RemarqueEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
